import request from '@/utils/request'
export default{
    saveCouser(courseInfo){
        return request({
            url:'/admin/edu/course/save-course-info',
            method:'post',
            data:courseInfo
        })
    },
    findCourseBy(id){
        return request({
            url:`/admin/edu/course/course-info/${id}`,
            method:'get'
        })
    },
    updateCouser(courseInfo){
        return request({
            url:'/admin/edu/course/update-course-info',
            method:'put',
            data:courseInfo
        })
    },
    gepageList(page,limit,searchObject){
        return request({
            url:`/admin/edu/course/list/${page}/${limit}`,
            method:'get',
            params:searchObject
        })
    },
    findCoursePublish(id){
        return request({
            url:`admin/edu/course/publish/${id}`,
            method:'get'
        })
    },
    publishCourse(id){
        return request({
            url:`admin/edu/course/doPublish/${id}`,
            method:'post'
        })
    },
    getCoursDescription(courseId){
        return request({
            url:`/admin/edu/course-description/get-info/${courseId}`,
            method:'get'
        })
    }
}